package com.liaoye.hellocustomview.evaluator;

import android.animation.TypeEvaluator;

public class CharEvaluator implements TypeEvaluator<Character> {
    @Override
    public Character evaluate(float fraction, Character startValue, Character endValue) {
        int startInt = startValue;
        int endInt = endValue;
        int evaluateValue = (int) (startInt + (endInt - startInt) * fraction);
        return (char) evaluateValue;
    }
}
